import axios from 'axios';

function apiAxios(axiosConfig) {
    const service = axios.create({
      baseURL: 'https://app.randeweb.cn/api', // 设置统一的请求前缀
      timeout: 10000, // 设置统一的超时时长
      headers: {
        'Authorization': `Bearer ${localStorage._authing_token}`
      }
    });
  
    return service(axiosConfig)
  }
  
  export default apiAxios;